﻿using System.Runtime.Serialization;

namespace ProxyTool.Models
{
    [DataContract]
    public class ReturnMessage<T>
    {
        /// <summary>
        ///     结果
        /// </summary>
        [DataMember]
        public T Data { get; set; }

        /// <summary>
        ///     是否成功
        /// </summary>
        [DataMember]
        public bool IsSuccess { get; set; } = true;

        /// <summary>
        ///     编码
        /// </summary>
        [DataMember]
        public int Code { get; set; }

        /// <summary>
        ///     错误信息
        /// </summary>
        [DataMember]
        public string ErrMsg { get; set; } = string.Empty;

        /// <summary>
        ///     堆栈
        /// </summary>
        [DataMember]
        public string StackString { get; set; } = string.Empty;
    }
}